package com.bbcare.followup.plat.service;


import com.alibaba.fastjson.JSONObject;
import com.bbcare.followup.plat.dto.request.MessageNotifyRecordReqDTO;
import com.bbcare.followup.plat.entity.FuMilkPreparationRecord;
import com.bbcare.followup.plat.entity.PtUserSharePhoto;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 消息通知服务接口
 */
public interface IMessageNotifyRecordService
{
    /**
     * 通知消息分页查询
     * @param reqDTO 请求参数
     * @return 分页结果
     */
    Map<String, Object> listPage(MessageNotifyRecordReqDTO reqDTO,HttpServletRequest request);

    /**
     * 发送备乳送奶通知
     * @param fuMilkPreparationRecord
     */
    void sendMilkPreparationMessage(FuMilkPreparationRecord fuMilkPreparationRecord, String platType);

    /**
     * 用户照片分享通知
     * @param ptUserSharePhoto 预约记录
     */
    void sendUserSharePhotoMessage(PtUserSharePhoto ptUserSharePhoto, String platType);


    /**
     * 标记消息的读取状态
     * @param id 消息ID
     */
    void markMessageNotifyRead(String id);

    /**
     * 发送通用消息
     * @param reqDTO
     */
    void sendMessage(JSONObject jsonObject);
}
